import { request } from '@/utils/request';

export default class Index {

    // 列表
    static getList (query) {
        return request({
            url: '/adient-pms/pad/deviceRepairRecord/page',
            method: 'get',
            params: query
        });
    }

    // 详情
    static devicedetail (no) {
        return request({
            url: `/adient-pms/pad/deviceRepairRecord/loadByNo/${no}`,
            method: 'get',
        });
    }

    // 确认受理任务
    static accepted (query) {
        return request({
            url: '/adient-pms/pad/deviceRepairRecord/accepted',
            method: 'put',
            params: query
        });
    }
}